package com.qf.quduba.service.impl;/*
作者： 放学狂吃辣条
时间： 
    
*/

import com.qf.quduba.dao.BookrackDao;
import com.qf.quduba.entity.Bookrack;
import com.qf.quduba.service.BookrackService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BookrackServiceImpl implements BookrackService {
    @Resource
    private BookrackDao bookrackDao;
    @Override
    public List<Bookrack> findBookRack(int userId) {
        return bookrackDao.findBookRack(userId);
    }

    @Override
    public int saveBookRack(String userId, String bookId, String chapterId) {
        return bookrackDao.saveBookRack(userId,bookId,chapterId);
    }

    @Override
    public Bookrack findBookRackByBookId(String userId, String bookId) {
        return bookrackDao.findBookRackByBookId(userId,bookId);
    }

    @Override
    public int deleteRackId(int bookrackId) {
        return bookrackDao.deleteRackId(bookrackId);
    }
}
